import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_home_edu_stat_entity.dart';

StandardHomeEduStatEntity $StandardHomeEduStatEntityFromJson(Map<String, dynamic> json) {
  final StandardHomeEduStatEntity standardHomeEduStatEntity = StandardHomeEduStatEntity();
  final int? eduCount = jsonConvert.convert<int>(json['eduCount']);
  if (eduCount != null) {
    standardHomeEduStatEntity.eduCount = eduCount;
  }
  final int? finishCount = jsonConvert.convert<int>(json['finishCount']);
  if (finishCount != null) {
    standardHomeEduStatEntity.finishCount = finishCount;
  }
  final int? type = jsonConvert.convert<int>(json['type']);
  if (type != null) {
    standardHomeEduStatEntity.type = type;
  }
  return standardHomeEduStatEntity;
}

Map<String, dynamic> $StandardHomeEduStatEntityToJson(StandardHomeEduStatEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['eduCount'] = entity.eduCount;
  data['finishCount'] = entity.finishCount;
  data['type'] = entity.type;
  return data;
}

extension StandardHomeEduStatEntityExtension on StandardHomeEduStatEntity {
  StandardHomeEduStatEntity copyWith({
    int? eduCount,
    int? finishCount,
    int? type,
  }) {
    return StandardHomeEduStatEntity()
      ..eduCount = eduCount ?? this.eduCount
      ..finishCount = finishCount ?? this.finishCount
      ..type = type ?? this.type;
  }
}
